package com.qt.thread;

/**
 * @Author zsf
 * @Date 2023/10/2 18:30
 * @Version 1.0
 */
public class MyThreadDemo02 {
    public static void main(String[] args) {

        MyRun myRun1 = new MyRun();
        Thread thread1 = new Thread(myRun1);
        Thread thread2 = new Thread(myRun1);
        thread1.setName("线程1");
        thread2.setName("线程2");
        thread1.start();
        thread2.start();


    }


}
